/*
 *    Robot protocol
 *
 *
 * MB sp 13
 *
 */

import java.net.*;
import java.io.*;

public class RobotProtocol {

    // Server to client messages
    public static final String hi      = "HI";             // initial message server ready
    public static final String huh     = "HUH";            // invalid request response
    public static final String ok      = "OK";             // successful move response
    public static final String invalid = "INVALID";        // invalid move request response
    public static final String goal    = "GOAL";           // succesful move and goal reached response


    // the following are used to compose a SCAN response indicating valid moves from the current position
    // a String compose of any combination of the following (including an empty String) is a valid SCAN response.
    public static final String  n = "NORTH ",  s = "SOUTH ",  e  = "EAST ", w = "WEST ";


    // Client to server messages
    public static final String north  = "NORTH";   // please move north
    public static final String east   = "EAST";    // please move east
    public static final String south  = "SOUTH";   // please move south
    public static final String west   = "WEST";    // please move west
    public static final String scan   = "SCAN";    // please scan the current chamber
    public static final String bye    = "BYE";      // client done with robot

}